package com.hy.mechanicalarm.ui.service;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.hy.mechanicalarm.ui.activity.MainActivity;

/**
 * Created by 韩银 on 2018/8/7 20:18
 * hanyinit@163.com
 */
public class ContentReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Intent it=new Intent(context,MainActivity.class);
        it.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(it);
    }
}
